<?php 
/* SVN FILE: $Id: admin_update.ctp 36 2007-09-19 00:39:08Z joe.vasquez $ */
/**
 * admin view for update profile
 * @filesource
 * @author			Joe Vasquez <joe.vasquez@gmail.com>
 * @copyright		Copyright (c) 2007, Joe Vasquez
 * @package			redlettr
 * @subpackage		users
 * @since			0.1A
 * @version			0.1A  $Rev: 36 $
 * @lastmodified	$Date: 2007-09-19 00:39:08 +0000 (Wed, 19 Sep 2007) $
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<?php echo $form->create('User',array('action' => 'update/'.$thisUser['User']['id']));?>
<?php echo $form->input('User.email',array(
	'type'	=> 'text',
	'value' => $thisUser['User']['email'],
	'error'	=> array(
		'isEmail'	=> 'Please enter a valid email address.',
		'required'	=> 'You forgot to enter your email address.'
	),
	'class'	=> 'textInput'
)); ?>
<?php if($thisUser['User']['id'] != 1): ?>
	<?php echo $form->input(
		'User.status',
		array(
			'type'		=> 'radio',
			'options'	=> $statusOptions,
			'value'		=> $thisUser['User']['status'],
			'class'	=> 'radioInput'
		)
	);
	?>
	<?php echo $form->input(
		'User.type',
		array(
			'type'		=> 'radio',
			'options'	=> $userTypeOptions,
			'value'		=> $userType,
			'class'	=> 'radioInput'
		)
	);
	?>
<?php endif; ?>
<?php echo $form->input('Profile.displayname',array(
	'type'	=> 'text',
	'value' => $thisUser['Profile']['displayname'],
	'class'	=> 'textInput'
)); ?>
<?php echo $form->input('Profile.signature',array(
	'type'	=> 'textarea',
	'value' => $thisUser['Profile']['signature'],
	'class'	=> 'textAreaInput'
)); ?>
<?php echo $form->end('Update'); ?>